<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.fick.hibernate.model.*"%>
<%@ page import="com.fick.hibernate.dao.*" %>
<%@ include file="../tld/tlds.jsp"%>
<html>
	<head>
		<style>
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.STYLE2 {
	color: #666666
}

body {
	margin: 0px;
	font: normal 12px "宋体", "Verdana", "Arial", "Helvetica", "sans-serif";
	SCROLLBAR-FACE-COLOR: rgb(31, 111, 191);
	SCROLLBAR-HIGHLIGHT-COLOR: rgb(31, 111, 191);
	SCROLLBAR-SHADOW-COLOR: rgb(10, 0, 209);
	SCROLLBAR-3DLIGHT-COLOR: rgb(23, 121, 255);
	SCROLLBAR-ARROW-COLOR: rgb(2, 51, 138);
	SCROLLBAR-TRACK-COLOR: rgb(46, 131, 215);
	SCROLLBAR-BASE-COLOR: rgb(46, 131, 215);
}
</style>
		<link href="css/css.css" rel="stylesheet"  type="text/css" />
		<script type="text/javascript" src="images/visidate.js"></script>
		<script type="text/javascript">
		  function sa(){
		    location = "managerUser.jsp";
		  }
		  function check(){
		     if(document.getElementById("title").value == ""){
		        alert("请输入标题");
		        return false;
		     }
		     if(document.getElementById("content").value == ""){
		        alert("请输入内容");
		        return false;
		     }
		  }
		</script>
	</head>
	<%
	  Message mess = new Message();
	  MessageDAO messDao = new MessageDAO();
	  try{
	     int id = Integer.parseInt(request.getParameter("id"));
	     mess = messDao.findById(id);
	  }catch(Exception e){
	  }
	 %>
	<body bgcolor="#4194E7" leftmargin="0" topmargin="0" marginheight="0"
		marginwidth="0">
		<form name="form1" id="form1" action="/admin/infoMessage.do" method="post" onSubmit="return check()"  />
		<table cellspacing="0" cellpadding="0" align="center" width="100%"
			cellspacing="20">
			<tr>
				<td bgcolor="#0650D2" align="center" height="25" class="lm_title">
					站 内 短 信 查 看
				</td>
			</tr>
			<Tr>
				<td align="center">
					<table cellpadding="1" cellspacing="0" align="center" width="100%"
						class="main_table">
						<tr>
							<Td align="center">
								标题:
							</Td>
							<Td colspan="3">
								<%=mess.getTitle() %>
							</Td>
						</tr>
						<tr>
						   <td align="center">
						       发信人：
						   </td>
						   <td>
						     <%=mess.getAddName() %>
						   </td>
						    <td>
						       发信时间：
						   </td>
						   <td>
						     <%=mess.getAddDate().toLocaleString() %>
						   </td>
						</tr>
						<tr>
							<Td align="center">
								内容：
							</Td>
							<Td colspan="3">
							  <%=mess.getContent() %>
						    </Td>
						</tr>
						<%
						   if(mess.getIfRe().equals("1")){
						 %>
						<tr>
						   <td align="center">
						       回信人：
						   </td>
						   <td>
						     <%=mess.getRePerson() %>
						   </td>
						    <td>
						      回信时间：
						   </td>
						   <td>
						     <%=mess.getReDate().toLocaleString() %>
						   </td>
						</tr>
						<tr>
							<Td align="center">
								回信内容：
							</Td>
							<Td colspan="3">
							  <%=mess.getReContent() %>
						    </Td>
						</tr>
						<%} %>
					</table>
				</td>
			</Tr>
			<tr>
				<td height="10"></td>
			</tr>
			<Tr>
				<td bgcolor="#0650D2" align="center" height="25" class="lm_title">
					Copyright 2008-2009 &copy; 登封市财政局 All Rights Reserved.
				</td>
			</Tr>
			
		</table>
	  </form>
	</body>
</html>

